package com.qys.livesMall.system.controller.app;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.qys.livesMall.common.result.R;
import com.qys.livesMall.framework.view.BaseQuery;
import com.qys.livesMall.system.model.dto.sys.PlatformAdvertisementQueryPackageDto;
import com.qys.livesMall.system.model.vo.sys.PlatformAdvertisementVo;
import com.qys.livesMall.system.service.H2PlatformAdvertisementService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.RequiredArgsConstructor;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <p>
 * 平台广告管理 前端控制器
 * </p>
 *
 * @author wzy
 * @since 2023-07-05
 */
@Tag(name = "APP平台广告管理", description = "APP平台广告管理")
@RestController
@RequestMapping("/app/platformAdvertisement")
@RequiredArgsConstructor(onConstructor = @__(@Autowired))
public class APPH2PlatformAdvertisementController {

    private final H2PlatformAdvertisementService h2PlatformAdvertisementService;

    @Operation(summary = "查询平台首页广告")
    @PostMapping("/queryHomeInfo")
    public R<PlatformAdvertisementVo> queryHomeInfo(){
        return R.ok(h2PlatformAdvertisementService.queryHomeInfo());
    }
}
